assume cs:code
code segment
s:	mov ax,0020h
	mov ds,ax
	mov cx,40h
	mov bx,0
c:	mov [bx],bl
	inc bx
	loop c
	
	mov ax,4c00h
	int 21
code ends
end s